package com.spring.cloud.study.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/2/28
 * Time: 15:10
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@RestController
@RequestMapping("/api")
public class TestController {

    @RequestMapping("/test1")
   // @PreAuthorize("hasAuthority('query')")
    public String test1(){
        return "test1";
    }

    @RequestMapping("/test2")
   // @PreAuthorize("hasAuthority('add')")
    public String test2(){
        return "test2";
    }
}
